<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本样式</title>
    <style>
span{
    font-style: 40px;
    color: brown;
    height: 60px;
    width: 300px;
    background-color: bisque;
    display: inline-block; 
    line-height: 160px;
    text-align: center;
    font-weight: bold; 
    font-style: italic;/*倾斜*/
    text-decoration: underline; /*下划线*/
    text-indent: 2em;
    text-overflow: ellipsis;  /*不换行*/
    white-space: nowrap;  /*超出隐藏*/
    overflow: hidden;  /*三个点*/
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;/*字体*/
}

a{
    text-decoration: none; /*去下划线*/
    color: blue;
}
    </style>
</head>
<body>
    <span>测试文本样式测试文本样式测试文本样式测试文本样式测试文本样式测试文本样式</span>
<a href="https://www.baidu.com">百度</a>
</body>
</html>